-- GENERATED SPELL FOR [Servant of Drakuru] --


function spell0_28802(pUnit, Event) --@Ferocious Enrage,Self--
pUnit:FullCastSpellOnTarget(52400,pUnit)
pUnit:RegisterEvent('Sorts_28802', 0, 1)
end

function spell1_28802(pUnit, Event) --@Gut Rip,n/a--
pUnit:FullCastSpellOnTarget(52401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28802', 9000, 1)
end

function spell2_28802(pUnit, Event) --@Rot Armor,n/a--
pUnit:FullCastSpellOnTarget(50361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28802', 10000, 1)
end

function spell3_28802(pUnit, Event) --@Stunning Force,n/a--
pUnit:FullCastSpellOnTarget(52402,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28802', 6000, 1)
end

function Sorts_28802(pUnit, Event)
local choix_sorts_28802 = math.random(0, 3)
if choix_sorts_28802 == 0 then
pUnit:RegisterEvent('spell0_28802', 1, 1)
end
if choix_sorts_28802 == 1 then
pUnit:RegisterEvent('spell1_28802', 1, 1)
end
if choix_sorts_28802 == 2 then
pUnit:RegisterEvent('spell2_28802', 1, 1)
end
if choix_sorts_28802 == 3 then
pUnit:RegisterEvent('spell3_28802', 1, 1)
end
end

function mob28802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28802', math.random(1500, 3000), 1)
end

function mob28802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28802, 1, 'mob28802_Action')
RegisterUnitEvent(28802, 2, 'mob28802_Leave')
RegisterUnitEvent(28802, 3, 'mob28802_Kill')
RegisterUnitEvent(28802, 4, 'mob28802_Die')
